//
//  HMAFRequestManager.m
//  HomeMate
//
//  Created by liuzhicai on 2018/3/22.
//  Copyright © 2018年 Air. All rights reserved.
//

#import "HMAFRequestManager.h"

@interface HMAFRequestManager ()

@property (nonatomic, strong)AFHTTPSessionManager *afHttpSessionManager;

@end

@implementation HMAFRequestManager
static HMAFRequestManager *hmManager;

+(HMAFRequestManager *)shareManager{
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        hmManager = [[self alloc] init];
        AFHTTPSessionManager *afHttpSessionManager = [AFHTTPSessionManager manager];
        hmManager.afHttpSessionManager = afHttpSessionManager;
    });
    return hmManager;
}

-(AFHTTPSessionManager *)afHttpSessionManager
{
    return _afHttpSessionManager;
}


@end
